<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../lib/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/base.css" />
    <link rel="stylesheet" type="text/css" href="../css/wholesale.css" />
    <title></title>
  </head>
  <body>
    <div class="titleTea">
      <a href="../index.html">
        <span class="glyphicon glyphicon-menu-left"></span>
      </a>
      <h3>产地批发</h3>
    </div>
    <div class="container">
    </div>
    <!-- 底部导航 -->
    <div class="teaNav container-fluid">
      <div class="row">
        <div class="home col-xs-4">
          <a href="./index.html">
            <span class="glyphicon glyphicon-home"></span>
            <span>首页</span>
          </a>
        </div>
        <div class="car col-xs-4">
          <a href="shop_car.html">
            <span class="glyphicon glyphicon-shopping-cart"></span>
            <span>购物车</span>
          </a>
        </div>
        <div class="myself col-xs-4">
          <a href="myself.html">
            <span class="glyphicon glyphicon-user"></span>
            <span>我的</span>
          </a>
        </div>
      </div>
    </div>
  </body>
   <!--<ul class="nav nav-tabs teaTab" role="tablist">
    <% for(var i = 0 ; i < fenlei.sing.cate1.length; i ++){ %>
    <% if(i==0){%>
    <li role="presentation" class="active">
      <a href="#items<%= fenlei.sing.cate1[i].cat_id  %>" aria-controls="home" role="tab" data-toggle="tab"><%= fenlei.sing.cate1[i].cat_name  %></a>
    </li>
    <% }else{%>
    <li role="presentation" class="">
      <a href="#items<%= fenlei.sing.cate1[i].cat_id  %>" aria-controls="home" role="tab" data-toggle="tab"><%= fenlei.sing.cate1[i].cat_name  %></a>
    </li>
    <% } %>
    <% } %>
  </ul>
  <div class="tab-content  yin-content">
    <% for(var j = 0 ; j < fenlei.sing.cate2.length; j ++){ %>
    <% if(j==0) {%>
    <div role="tabpanel" class="tab-pane active" id="items<%= fenlei.sing.cate1[j].cat_id  %>">
      <% } else{ %>
      <div role="tabpanel" class="tab-pane" id="items<%= fenlei.sing.cate1[j].cat_id  %>">
        <% } %>
        <ul class="nav nav-tabs activeSon" role="tablist">
          <% for(var  h= 0 ; h < fenlei.sing.cate2[j].length; h ++){ %>
          <% if( h==0){%>
          <li role="presentation" class="active">
            <a href="#all<%= fenlei.sing.cate2[j][h].cat_id  %>" aria-controls="all<%= fenlei.sing.cate2[j][h].cat_id  %>" role="tab" data-toggle="tab"><%= fenlei.sing.cate2[j][h].cat_name  %></a>
          </li>
          <% } else{ %>
          <li role="presentation" class="">
            <a href="#all<%= fenlei.sing.cate2[j][h].cat_id  %>" aria-controls="all<%= fenlei.sing.cate2[j][h].cat_id  %>" role="tab" data-toggle="tab"><%= fenlei.sing.cate2[j][h].cat_name  %></a>
          </li>
          <% } %>
          <% } %>
        </ul>
        <div class="tab-content">
          <% for(var  k= 0 ; k < fenlei.sing.cate2[j].length; k ++){ %>
          <% if( k==0){%>
      <div role="tabpanel" class="tab-pane active" id="all<%= fenlei.sing.cate2[j][k].cat_id  %>">
      <% }else{ %>
      <div role="tabpanel" class="tab-pane" id="all<%= fenlei.sing.cate2[j][k].cat_id  %>">
      <% }%>
            <% for(var  m= 0 ;m < fenlei.sing.cate2[j][k].goodsLIst.length; m ++){ %>
            <a href="#" data-goods_id=<%= fenlei.sing.cate2[j][k].goodsLIst[m].goods_id %> class="goods">
              <div class="media">
                <div class="media-left">
                  <img class="media-object" src= <%= fenlei.sing.cate2[j][k].goodsLIst[m].goods_img %> alt="...">
                </div>
                <div class="media-body">
                  <h4 class="media-heading"> <%= fenlei.sing.cate2[j][k].goodsLIst[m].goods_name %></h4> 
                  <p><%= fenlei.sing.cate2[j][k].goodsLIst[m].goods_brief%></p>
                </div>
              </div>
            </a>
            <% } %>
          </div>
          <% } %>
        </div>
      </div>
      <% } %>
    </div>-->
    <!-- <ul class="nav nav-tabs teaTab" role="tablist">
    <li role="presentation" class="active">
      <a href="" aria-controls="home" role="tab" data-toggle="tab">综合分类</a>
    </li>
  </ul> -->
  <script src="../lib/js/jquery-1.12.4.js"></script>
  <script src="../lib/js/bootstrap.min.js"></script>
  <script src="../lib/template/template-native.js"></script>
  <script src="../script/rem.js"></script>
  <script  type="text" id="wholesale">
    
  <div class="tab-content  yin-content">
    <% for(var j = 0 ; j < fenlei.sing.cate2.length; j ++){ %>
    <% if(j==0) {%>
    <div role="tabpanel" class="tab-pane active" id="">
      <% } else{ %>
      <div role="tabpanel" class="tab-pane" id="">
        <% } %>
        <ul class="nav nav-tabs activeSon" role="tablist">
          <% for(var  h= 0 ; h < fenlei.sing.cate2[j].length; h ++){ %>
          <% if( h==0){%>
          <li role="presentation" class="active">
            <a href="#all<%= fenlei.sing.cate2[j][h].cat_id  %>" aria-controls="all<%= fenlei.sing.cate2[j][h].cat_id  %>" role="tab" data-toggle="tab"><%= fenlei.sing.cate2[j][h].cat_name  %></a>
          </li>
          <% } else{ %>
          <li role="presentation" class="">
            <a href="#all<%= fenlei.sing.cate2[j][h].cat_id  %>" aria-controls="all<%= fenlei.sing.cate2[j][h].cat_id  %>" role="tab" data-toggle="tab"><%= fenlei.sing.cate2[j][h].cat_name  %></a>
          </li>
          <% } %>
          <% } %>
        </ul>
        <div class="tab-content">
          <% for(var  k= 0 ; k < fenlei.sing.cate2[j].length; k ++){ %>
          <% if( k==0){%>
      <div role="tabpanel" class="tab-pane active" id="all<%= fenlei.sing.cate2[j][k].cat_id  %>">
      <% }else{ %>
      <div role="tabpanel" class="tab-pane" id="all<%= fenlei.sing.cate2[j][k].cat_id  %>">
      <% }%>
            <% for(var  m= 0 ;m < fenlei.sing.cate2[j][k].goodsLIst.length; m ++){ %>
            <a href="#" data-goods_id=<%= fenlei.sing.cate2[j][k].goodsLIst[m].goods_id %> class="goods">
              <div class="media">
                <div class="media-left">
                  <img class="media-object" src= <%= fenlei.sing.cate2[j][k].goodsLIst[m].goods_img %> alt="...">
                </div>
                <div class="media-body">
                  <h4 class="media-heading"> <%= fenlei.sing.cate2[j][k].goodsLIst[m].goods_name %></h4> 
                  <p><%= fenlei.sing.cate2[j][k].goodsLIst[m].goods_brief%></p>
                  <p class="adress">价格：<span><%= fenlei.sing.cate2[j][k].goodsLIst[m].shop_price%>元</span></p>
                </div>
              </div>
            </a>
            <% } %>
          </div>
          <% } %>
        </div>
      </div>
      <% } %>
    </div>
    </script>
    <script src="../script/wholesale.js"></script>
  </html>